package day1.demo2;

public class Test {
    public static void main(String[] args) {
        MyTarget t = new MyTarget();

        Thread thread1 = new Thread(t);
        thread1.start();

        Thread thread2 = new Thread(t);
        thread2.start();


        Thread t3 = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("我是匿名内部类。。。。");
            }
        });
        t3.start();
    }
}
